import { addFn } from './add/add'

import { getArrSum } from './tool/tool'

console.log(addFn(10, 20));
console.log(getArrSum([1, 2, 3]));

import $ from 'jquery'
$(function () {
  $('ul li:odd').css('color', 'red')
  $('ul li:even').css('color', 'green')
})


import "./css/index.css"
import "./less/index.less"

// 引入图片-使用
import imgUrl from './assets/logo_small.png'
const theImg = document.createElement("img")
theImg.src = imgUrl
document.body.appendChild(theImg)

// 引入字体图标文件
import './assets/fonts/iconfont.css'


// 高级语法
const fn = () => {
  console.log("你好babel");
}
console.log(fn)